home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / parser / biflex / lex.yy.c next >
Encoding:
C/C++ Source or Header  |  1996-07-23  |  42.1 KB  |  1,737 lines

  1. /* A lexical scanner generated by flex */
  2.  
  3. /* Scanner skeleton version:
  4.  * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.85 95/04/24 10:48:47 vern Exp $
  5.  * ICCE addition for Linux: include of unistd added; pwp 95 05 04
  6.  */
  7.  
  8. #define FLEX_SCANNER
  9. #define YY_FLEX_MAJOR_VERSION 2
  10. #define YY_FLEX_MINOR_VERSION 5
  11.  
  12. #include <stdio.h>
  13. #include <unistd.h>
  14.  
  15.  
  16. /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  17. #ifdef c_plusplus
  18. #ifndef __cplusplus
  19. #define __cplusplus
  20. #endif
  21. #endif
  22.  
  23.  
  24. #ifdef __cplusplus
  25.  
  26. #include <stdlib.h>
  27. #include <unistd.h>
  28.  
  29. /* Use prototypes in function declarations. */
  30. #define YY_USE_PROTOS
  31.  
  32. /* The "const" storage-class-modifier is valid. */
  33. #define YY_USE_CONST
  34.  
  35. #else    /* ! __cplusplus */
  36.  
  37. #if __STDC__
  38.  
  39. #define YY_USE_PROTOS
  40. #define YY_USE_CONST
  41.  
  42. #endif    /* __STDC__ */
  43. #endif    /* ! __cplusplus */
  44.  
  45. #ifdef __TURBOC__
  46.  #pragma warn -rch
  47.  #pragma warn -use
  48. #include <io.h>
  49. #include <stdlib.h>
  50. #define YY_USE_CONST
  51. #define YY_USE_PROTOS
  52. #endif
  53.  
  54. #ifdef YY_USE_CONST
  55. #define yyconst const
  56. #else
  57. #define yyconst
  58. #endif
  59.  
  60.  
  61. #ifdef YY_USE_PROTOS
  62. #define YY_PROTO(proto) proto
  63. #else
  64. #define YY_PROTO(proto) ()
  65. #endif
  66.  
  67. /* Returned upon end-of-file. */
  68. #define YY_NULL 0
  69.  
  70. /* Promotes a possibly negative, possibly signed char to an unsigned
  71.  * integer for use as an array index.  If the signed char is negative,
  72.  * we want to instead treat it as an 8-bit unsigned char, hence the
  73.  * double cast.
  74.  */
  75. #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  76.  
  77. /* Enter a start condition.  This macro really ought to take a parameter,
  78.  * but we do it the disgusting crufty way forced on us by the ()-less
  79.  * definition of BEGIN.
  80.  */
  81. #define BEGIN yy_start = 1 + 2 *
  82.  
  83. /* Translate the current start state into a value that can be later handed
  84.  * to BEGIN to return to the state.  The YYSTATE alias is for lex
  85.  * compatibility.
  86.  */
  87. #define YY_START ((yy_start - 1) / 2)
  88. #define YYSTATE YY_START
  89.  
  90. /* Action number for EOF rule of a given start state. */
  91. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  92.  
  93. /* Special action meaning "start processing a new file". */
  94. #define YY_NEW_FILE yyrestart( yyin )
  95.  
  96. #define YY_END_OF_BUFFER_CHAR 0
  97.  
  98. /* Size of default input buffer. */
  99. #define YY_BUF_SIZE 16384
  100.  
  101. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  102.  
  103. extern int yyleng;
  104. extern FILE *yyin, *yyout;
  105.  
  106. #define EOB_ACT_CONTINUE_SCAN 0
  107. #define EOB_ACT_END_OF_FILE 1
  108. #define EOB_ACT_LAST_MATCH 2
  109.  
  110. /* The funky do-while in the following #define is used to turn the definition
  111.  * int a single C statement (which needs a semi-colon terminator).  This
  112.  * avoids problems with code like:
  113.  *
  114.  *     if ( condition_holds )
  115.  *        yyless( 5 );
  116.  *    else
  117.  *        do_something_else();
  118.  *
  119.  * Prior to using the do-while the compiler would get upset at the
  120.  * "else" because it interpreted the "if" statement as being all
  121.  * done when it reached the ';' after the yyless() call.
  122.  */
  123.  
  124. /* Return all but the first 'n' matched characters back to the input stream. */
  125.  
  126. #define yyless(n) \
  127.     do \
  128.         { \
  129.         /* Undo effects of setting up yytext. */ \
  130.         *yy_cp = yy_hold_char; \
  131.         yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  132.         YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  133.         } \
  134.     while ( 0 )
  135.  
  136. #define unput(c) yyunput( c, yytext_ptr )
  137.  
  138. /* The following is because we cannot portably get our hands on size_t
  139.  * (without autoconf's help, which isn't available because we want
  140.  * flex-generated scanners to compile on their own).
  141.  */
  142. typedef unsigned int yy_size_t;
  143.  
  144.  
  145. struct yy_buffer_state
  146.     {
  147.     FILE *yy_input_file;
  148.  
  149.     char *yy_ch_buf;        /* input buffer */
  150.     char *yy_buf_pos;        /* current position in input buffer */
  151.  
  152.     /* Size of input buffer in bytes, not including room for EOB
  153.      * characters.
  154.      */
  155.     yy_size_t yy_buf_size;
  156.  
  157.     /* Number of characters read into yy_ch_buf, not including EOB
  158.      * characters.
  159.      */
  160.     int yy_n_chars;
  161.  
  162.     /* Whether we "own" the buffer - i.e., we know we created it,
  163.      * and can realloc() it to grow it, and should free() it to
  164.      * delete it.
  165.      */
  166.     int yy_is_our_buffer;
  167.  
  168.     /* Whether this is an "interactive" input source; if so, and
  169.      * if we're using stdio for input, then we want to use getc()
  170.      * instead of fread(), to make sure we stop fetching input after
  171.      * each newline.
  172.      */
  173.     int yy_is_interactive;
  174.  
  175.     /* Whether we're considered to be at the beginning of a line.
  176.      * If so, '^' rules will be active on the next match, otherwise
  177.      * not.
  178.      */
  179.     int yy_at_bol;
  180.  
  181.     /* Whether to try to fill the input buffer when we reach the
  182.      * end of it.
  183.      */
  184.     int yy_fill_buffer;
  185.  
  186.     int yy_buffer_status;
  187. #define YY_BUFFER_NEW 0
  188. #define YY_BUFFER_NORMAL 1
  189.     /* When an EOF's been seen but there's still some text to process
  190.      * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  191.      * shouldn't try reading from the input source any more.  We might
  192.      * still have a bunch of tokens to match, though, because of
  193.      * possible backing-up.
  194.      *
  195.      * When we actually see the EOF, we change the status to "new"
  196.      * (via yyrestart()), so that the user can continue scanning by
  197.      * just pointing yyin at a new input file.
  198.      */
  199. #define YY_BUFFER_EOF_PENDING 2
  200.     };
  201.  
  202. static YY_BUFFER_STATE yy_current_buffer = 0;
  203.  
  204. /* We provide macros for accessing buffer states in case in the
  205.  * future we want to put the buffer states in a more general
  206.  * "scanner state".
  207.  */
  208. #define YY_CURRENT_BUFFER yy_current_buffer
  209.  
  210.  
  211. /* yy_hold_char holds the character lost when yytext is formed. */
  212. static char yy_hold_char;
  213.  
  214. static int yy_n_chars;        /* number of characters read into yy_ch_buf */
  215.  
  216.  
  217. int yyleng;
  218.  
  219. /* Points to current character in buffer. */
  220. static char *yy_c_buf_p = (char *) 0;
  221. static int yy_init = 1;        /* whether we need to initialize */
  222. static int yy_start = 0;    /* start state number */
  223.  
  224. /* Flag which is used to allow yywrap()'s to do buffer switches
  225.  * instead of setting up a fresh yyin.  A bit of a hack ...
  226.  */
  227. static int yy_did_buffer_switch_on_eof;
  228.  
  229. void yyrestart YY_PROTO(( FILE *input_file ));
  230.  
  231. void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  232. void yy_load_buffer_state YY_PROTO(( void ));
  233. YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  234. void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  235. void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  236. void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  237. #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
  238.  
  239. YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
  240. YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str ));
  241. YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
  242.  
  243. static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
  244. static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
  245. static void yy_flex_free YY_PROTO(( void * ));
  246.  
  247. #define yy_new_buffer yy_create_buffer
  248.  
  249. #define yy_set_interactive(is_interactive) \
  250.     { \
  251.     if ( ! yy_current_buffer ) \
  252.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  253.     yy_current_buffer->yy_is_interactive = is_interactive; \
  254.     }
  255.  
  256. #define yy_set_bol(at_bol) \
  257.     { \
  258.     if ( ! yy_current_buffer ) \
  259.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  260.     yy_current_buffer->yy_at_bol = at_bol; \
  261.     }
  262.  
  263. #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
  264.  
  265. typedef unsigned char YY_CHAR;
  266. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  267. typedef int yy_state_type;
  268. extern char *yytext;
  269. #define yytext_ptr yytext
  270.  
  271. static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  272. static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  273. static int yy_get_next_buffer YY_PROTO(( void ));
  274. static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
  275.  
  276. /* Done after the current pattern has been matched and before the
  277.  * corresponding action - sets up yytext.
  278.  */
  279. #define YY_DO_BEFORE_ACTION \
  280.     yytext_ptr = yy_bp; \
  281.     yyleng = (int) (yy_cp - yy_bp); \
  282.     yy_hold_char = *yy_cp; \
  283.     *yy_cp = '\0'; \
  284.     yy_c_buf_p = yy_cp;
  285.  
  286. #define YY_NUM_RULES 35
  287. #define YY_END_OF_BUFFER 36
  288. static yyconst short int yy_accept[163] =
  289.     {   0,
  290.         0,    0,   36,   34,    2,    1,    3,   34,   32,   33,
  291.        32,   34,   34,   34,   34,   34,   34,   34,   34,   34,
  292.        34,   34,   34,    3,   33,   33,   34,   34,   34,   34,
  293.        34,   34,   34,   34,   34,   34,   34,   34,    8,   34,
  294.        34,   34,   34,   34,   34,   34,   34,   34,   34,   34,
  295.        34,   34,   12,   11,   34,   34,   34,    9,   34,   34,
  296.        34,   34,   34,   34,   34,    4,   34,   34,   34,   34,
  297.        34,   34,   15,   34,   34,   34,   34,    6,   34,   34,
  298.        20,   34,   34,   34,   34,   34,   34,   34,   34,   34,
  299.        34,   34,   23,   17,   34,   30,   34,   34,   34,   34,
  300.  
  301.        34,   34,   26,   31,   14,   19,   34,   34,   34,   34,
  302.        34,   18,   34,   34,   34,   34,   34,   34,   34,   34,
  303.        10,   34,    7,   34,   22,   27,   34,   34,   34,   34,
  304.        34,    5,   34,   34,   34,   34,   34,   21,   34,   34,
  305.        34,   34,   25,   34,   34,   34,   34,   34,   34,   34,
  306.        34,   13,   34,   34,   34,   16,   24,   34,   29,   34,
  307.        28,    0
  308.     } ;
  309.  
  310. static yyconst int yy_ec[256] =
  311.     {   0,
  312.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  313.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  314.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  315.         1,    2,    1,    1,    4,    1,    1,    1,    1,    1,
  316.         1,    5,    1,    6,    7,    1,    1,    8,    8,    8,
  317.         8,    8,    8,    8,    8,    8,    8,    9,    1,    1,
  318.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  319.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  320.         1,    1,   10,    1,    1,    1,    1,    1,    1,    1,
  321.         1,    1,    1,    1,    1,    1,   11,   12,   13,   14,
  322.  
  323.        15,   16,   17,   18,   19,    1,   20,   21,   22,   23,
  324.        24,   25,    1,   26,   27,   28,   29,    1,    1,   30,
  325.        31,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  326.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  327.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  328.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  329.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  330.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  331.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  332.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  333.  
  334.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  335.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  336.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  337.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  338.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  339.         1,    1,    1,    1,    1
  340.     } ;
  341.  
  342. static yyconst int yy_meta[32] =
  343.     {   0,
  344.         1,    2,    3,    2,    1,    2,    1,    1,    2,    1,
  345.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  346.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  347.         1
  348.     } ;
  349.  
  350. static yyconst short int yy_base[165] =
  351.     {   0,
  352.         0,    0,  180,    0,  181,  181,    0,   26,   27,   30,
  353.       181,  168,   22,   17,   21,   31,  154,   27,   33,  162,
  354.       148,  148,    0,    0,   46,   50,  153,   30,   38,  162,
  355.       144,  148,  153,  139,  153,  153,  152,  149,    0,   37,
  356.       140,  135,  131,   44,  140,  149,  131,  137,  142,  137,
  357.       129,  139,   50,  125,  124,  136,  135,    0,  130,  130,
  358.       124,  120,  135,  118,  120,  130,  112,  121,   46,  126,
  359.       117,  126,    0,  117,  112,  115,  105,  110,  104,  117,
  360.         0,  114,   97,  119,   99,  108,  113,  102,   99,  102,
  361.        96,   91,    0,    0,   97,    0,   95,   85,  103,   86,
  362.  
  363.        92,   89,    0,    0,    0,    0,   98,   82,   98,   85,
  364.        90,    0,   91,   90,   91,   92,   83,   77,   71,   79,
  365.         0,   70,    0,   81,    0,    0,   72,   68,   71,   76,
  366.        70,    0,   72,   71,   66,   73,   76,    0,   74,   61,
  367.        63,   67,    0,   54,   66,   57,   64,   59,   58,   50,
  368.        48,    0,   57,   49,   45,    0,    0,   45,    0,   35,
  369.         0,  181,   60,   69
  370.     } ;
  371.  
  372. static yyconst short int yy_def[165] =
  373.     {   0,
  374.       162,    1,  162,  163,  162,  162,  164,  163,  162,  163,
  375.       162,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  376.       163,  163,  163,  164,  162,  163,  163,  163,  163,  163,
  377.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  378.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  379.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  380.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  381.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  382.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  383.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  384.  
  385.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  386.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  387.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  388.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  389.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  390.       163,  163,  163,  163,  163,  163,  163,  163,  163,  163,
  391.       163,    0,  162,  162
  392.     } ;
  393.  
  394. static yyconst short int yy_nxt[213] =
  395.     {   0,
  396.         4,    5,    6,    7,    8,    9,    4,   10,   11,    4,
  397.         4,    4,   12,   13,   14,    4,    4,    4,    4,    4,
  398.        15,   16,   17,   18,   19,   20,    4,   21,   22,    4,
  399.         4,   25,   25,   26,   25,   25,   28,   26,   30,   32,
  400.        29,   34,   38,   40,   33,   46,   31,   35,   48,   39,
  401.        41,   25,   90,   25,   36,   25,   47,   26,   64,   59,
  402.        23,  161,   65,   49,   60,   74,   91,  160,   75,   24,
  403.        24,  159,  158,  157,  156,  155,  154,  153,  152,  151,
  404.       150,  149,  148,  147,  146,  145,  144,  143,  142,  141,
  405.       140,  139,  138,  137,  136,  135,  134,  133,  132,  131,
  406.  
  407.       130,  129,  128,  127,  126,  125,  124,  123,  122,  121,
  408.       120,  119,  118,  117,  116,  115,  114,  113,  112,  111,
  409.       110,  109,  108,  107,  106,  105,  104,  103,  102,  101,
  410.       100,   99,   98,   97,   96,   95,   94,   93,   92,   89,
  411.        88,   87,   86,   85,   84,   83,   82,   81,   80,   79,
  412.        78,   77,   76,   73,   72,   71,   70,   69,   68,   67,
  413.        66,   63,   62,   61,   58,   57,   56,   55,   54,   53,
  414.        52,   51,   50,   45,   44,   43,   42,   37,   27,  162,
  415.         3,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  416.       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  417.  
  418.       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  419.       162,  162
  420.     } ;
  421.  
  422. static yyconst short int yy_chk[213] =
  423.     {   0,
  424.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  425.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  426.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  427.         1,    8,    9,    8,    9,   10,   13,   10,   14,   15,
  428.        13,   16,   18,   19,   15,   28,   14,   16,   29,   18,
  429.        19,   25,   69,   25,   16,   26,   28,   26,   44,   40,
  430.       163,  160,   44,   29,   40,   53,   69,  158,   53,  164,
  431.       164,  155,  154,  153,  151,  150,  149,  148,  147,  146,
  432.       145,  144,  142,  141,  140,  139,  137,  136,  135,  134,
  433.       133,  131,  130,  129,  128,  127,  124,  122,  120,  119,
  434.  
  435.       118,  117,  116,  115,  114,  113,  111,  110,  109,  108,
  436.       107,  102,  101,  100,   99,   98,   97,   95,   92,   91,
  437.        90,   89,   88,   87,   86,   85,   84,   83,   82,   80,
  438.        79,   78,   77,   76,   75,   74,   72,   71,   70,   68,
  439.        67,   66,   65,   64,   63,   62,   61,   60,   59,   57,
  440.        56,   55,   54,   52,   51,   50,   49,   48,   47,   46,
  441.        45,   43,   42,   41,   38,   37,   36,   35,   34,   33,
  442.        32,   31,   30,   27,   22,   21,   20,   17,   12,    3,
  443.       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  444.       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  445.  
  446.       162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
  447.       162,  162
  448.     } ;
  449.  
  450. static yy_state_type yy_last_accepting_state;
  451. static char *yy_last_accepting_cpos;
  452.  
  453. /* The intent behind this definition is that it'll catch
  454.  * any uses of REJECT which flex missed.
  455.  */
  456. #define REJECT reject_used_but_not_detected
  457. #define yymore() yymore_used_but_not_detected
  458. #define YY_MORE_ADJ 0
  459. char *yytext;
  460. #line 1 "lexer"
  461. #define INITIAL 0
  462. #line 2 "lexer"
  463.     #include "parser.p" 
  464.     
  465.     int 
  466.         yylineno = 1;
  467.  
  468. #line 469 "lex.yy.c"
  469.  
  470. /* Macros after this point can all be overridden by user definitions in
  471.  * section 1.
  472.  */
  473.  
  474. #ifndef YY_SKIP_YYWRAP
  475. #ifdef __cplusplus
  476. extern "C" int yywrap YY_PROTO(( void ));
  477. #else
  478. extern int yywrap YY_PROTO(( void ));
  479. #endif
  480. #endif
  481.  
  482. #ifndef YY_NO_UNPUT
  483. static void yyunput YY_PROTO(( int c, char *buf_ptr ));
  484. #endif
  485.  
  486. #ifndef yytext_ptr
  487. static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
  488. #endif
  489.  
  490. #ifndef YY_NO_INPUT
  491. #ifdef __cplusplus
  492. static int yyinput YY_PROTO(( void ));
  493. #else
  494. static int input YY_PROTO(( void ));
  495. #endif
  496. #endif
  497.  
  498. #if YY_STACK_USED
  499. static int yy_start_stack_ptr = 0;
  500. static int yy_start_stack_depth = 0;
  501. static int *yy_start_stack = 0;
  502. #ifndef YY_NO_PUSH_STATE
  503. static void yy_push_state YY_PROTO(( int new_state ));
  504. #endif
  505. #ifndef YY_NO_POP_STATE
  506. static void yy_pop_state YY_PROTO(( void ));
  507. #endif
  508. #ifndef YY_NO_TOP_STATE
  509. static int yy_top_state YY_PROTO(( void ));
  510. #endif
  511.  
  512. #else
  513. #define YY_NO_PUSH_STATE 1
  514. #define YY_NO_POP_STATE 1
  515. #define YY_NO_TOP_STATE 1
  516. #endif
  517.  
  518. #ifdef YY_MALLOC_DECL
  519. YY_MALLOC_DECL
  520. #else
  521. #if __STDC__
  522. #ifndef __cplusplus
  523. #include <stdlib.h>
  524. #endif
  525. #else
  526. /* Just try to get by without declaring the routines.  This will fail
  527.  * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
  528.  * or sizeof(void*) != sizeof(int).
  529.  */
  530. #endif
  531. #endif
  532.  
  533. /* Amount of stuff to slurp up with each read. */
  534. #ifndef YY_READ_BUF_SIZE
  535. #define YY_READ_BUF_SIZE 8192
  536. #endif
  537.  
  538. /* Copy whatever the last rule matched to the standard output. */
  539.  
  540. #ifndef ECHO
  541. /* This used to be an fputs(), but since the string might contain NUL's,
  542.  * we now use fwrite().
  543.  */
  544. #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
  545. #endif
  546.  
  547. /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  548.  * is returned in "result".
  549.  */
  550. #ifndef YY_INPUT
  551. #define YY_INPUT(buf,result,max_size) \
  552.     if ( yy_current_buffer->yy_is_interactive ) \
  553.         { \
  554.         int c = '*', n; \
  555.         for ( n = 0; n < max_size && \
  556.                  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  557.             buf[n] = (char) c; \
  558.         if ( c == '\n' ) \
  559.             buf[n++] = (char) c; \
  560.         if ( c == EOF && ferror( yyin ) ) \
  561.             YY_FATAL_ERROR( "input in flex scanner failed" ); \
  562.         result = n; \
  563.         } \
  564.     else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
  565.           && ferror( yyin ) ) \
  566.         YY_FATAL_ERROR( "input in flex scanner failed" );
  567. #endif
  568.  
  569. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  570.  * we don't want an extra ';' after the "return" because that will cause
  571.  * some compilers to complain about unreachable statements.
  572.  */
  573. #ifndef yyterminate
  574. #define yyterminate() return YY_NULL
  575. #endif
  576.  
  577. /* Number of entries by which start-condition stack grows. */
  578. #ifndef YY_START_STACK_INCR
  579. #define YY_START_STACK_INCR 25
  580. #endif
  581.  
  582. /* Report a fatal error. */
  583. #ifndef YY_FATAL_ERROR
  584. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  585. #endif
  586.  
  587. /* Default declaration of generated scanner - a define so the user can
  588.  * easily add parameters.
  589.  */
  590. #ifndef YY_DECL
  591. #define YY_DECL int yylex YY_PROTO(( void ))
  592. #endif
  593.  
  594. /* Code executed at the beginning of each rule, after yytext and yyleng
  595.  * have been set up.
  596.  */
  597. #ifndef YY_USER_ACTION
  598. #define YY_USER_ACTION
  599. #endif
  600.  
  601. /* Code executed at the end of each rule. */
  602. #ifndef YY_BREAK
  603. #define YY_BREAK break;
  604. #endif
  605.  
  606. #define YY_RULE_SETUP \
  607.     YY_USER_ACTION
  608.  
  609. YY_DECL
  610.     {
  611.     register yy_state_type yy_current_state;
  612.     register char *yy_cp, *yy_bp;
  613.     register int yy_act;
  614.  
  615. #line 9 "lexer"
  616.  
  617.  
  618. #line 619 "lex.yy.c"
  619.  
  620.     if ( yy_init )
  621.         {
  622.         yy_init = 0;
  623.  
  624. #ifdef YY_USER_INIT
  625.         YY_USER_INIT;
  626. #endif
  627.  
  628.         if ( ! yy_start )
  629.             yy_start = 1;    /* first start state */
  630.  
  631.         if ( ! yyin )
  632.             yyin = stdin;
  633.  
  634.         if ( ! yyout )
  635.             yyout = stdout;
  636.  
  637.         if ( ! yy_current_buffer )
  638.             yy_current_buffer =
  639.                 yy_create_buffer( yyin, YY_BUF_SIZE );
  640.  
  641.         yy_load_buffer_state();
  642.         }
  643.  
  644.     while ( 1 )        /* loops until end-of-file is reached */
  645.         {
  646.         yy_cp = yy_c_buf_p;
  647.  
  648.         /* Support of yytext. */
  649.         *yy_cp = yy_hold_char;
  650.  
  651.         /* yy_bp points to the position in yy_ch_buf of the start of
  652.          * the current run.
  653.          */
  654.         yy_bp = yy_cp;
  655.  
  656.         yy_current_state = yy_start;
  657. yy_match:
  658.         do
  659.             {
  660.             register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  661.             if ( yy_accept[yy_current_state] )
  662.                 {
  663.                 yy_last_accepting_state = yy_current_state;
  664.                 yy_last_accepting_cpos = yy_cp;
  665.                 }
  666.             while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  667.                 {
  668.                 yy_current_state = (int) yy_def[yy_current_state];
  669.                 if ( yy_current_state >= 163 )
  670.                     yy_c = yy_meta[(unsigned int) yy_c];
  671.                 }
  672.             yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  673.             ++yy_cp;
  674.             }
  675.         while ( yy_base[yy_current_state] != 181 );
  676.  
  677. yy_find_action:
  678.         yy_act = yy_accept[yy_current_state];
  679.         if ( yy_act == 0 )
  680.             { /* have to back up */
  681.             yy_cp = yy_last_accepting_cpos;
  682.             yy_current_state = yy_last_accepting_state;
  683.             yy_act = yy_accept[yy_current_state];
  684.             }
  685.  
  686.         YY_DO_BEFORE_ACTION;
  687.  
  688.  
  689. do_action:    /* This label is used only to access EOF actions. */
  690.  
  691.  
  692.         switch ( yy_act )
  693.     { /* beginning of action switch */
  694.             case 0: /* must back up */
  695.             /* undo the effects of YY_DO_BEFORE_ACTION */
  696.             *yy_cp = yy_hold_char;
  697.             yy_cp = yy_last_accepting_cpos;
  698.             yy_current_state = yy_last_accepting_state;
  699.             goto yy_find_action;
  700.  
  701. case 1:
  702. YY_RULE_SETUP
  703. #line 11 "lexer"
  704. yylineno++;
  705.     YY_BREAK
  706. case 2:
  707. YY_RULE_SETUP
  708. #line 13 "lexer"
  709. ;
  710.     YY_BREAK
  711. case 3:
  712. YY_RULE_SETUP
  713. #line 15 "lexer"
  714. ;
  715.     YY_BREAK
  716. case 4:
  717. YY_RULE_SETUP
  718. #line 17 "lexer"
  719. return (CALL);
  720.     YY_BREAK
  721. case 5:
  722. YY_RULE_SETUP
  723. #line 19 "lexer"
  724. return (CALLBACK);
  725.     YY_BREAK
  726. case 6:
  727. YY_RULE_SETUP
  728. #line 21 "lexer"
  729. return (MODE);
  730.     YY_BREAK
  731. case 7:
  732. YY_RULE_SETUP
  733. #line 23 "lexer"
  734. return (DIALIN);
  735.     YY_BREAK
  736. case 8:
  737. YY_RULE_SETUP
  738. #line 25 "lexer"
  739. return (ON);
  740.     YY_BREAK
  741. case 9:
  742. YY_RULE_SETUP
  743. #line 27 "lexer"
  744. return (OFF);
  745.     YY_BREAK
  746. case 10:
  747. YY_RULE_SETUP
  748. #line 29 "lexer"
  749. return (DEFAULT);
  750.     YY_BREAK
  751. case 11:
  752. YY_RULE_SETUP
  753. #line 31 "lexer"
  754. return (MAX);
  755.     YY_BREAK
  756. case 12:
  757. YY_RULE_SETUP
  758. #line 33 "lexer"
  759. return (LOG);
  760.     YY_BREAK
  761. case 13:
  762. YY_RULE_SETUP
  763. #line 35 "lexer"
  764. return (DIALLOG);
  765.     YY_BREAK
  766. case 14:
  767. YY_RULE_SETUP
  768. #line 37 "lexer"
  769. return (USERS);
  770.     YY_BREAK
  771. case 15:
  772. YY_RULE_SETUP
  773. #line 39 "lexer"
  774. return (LINE);
  775.     YY_BREAK
  776. case 16:
  777. YY_RULE_SETUP
  778. #line 41 "lexer"
  779. return (DESTINATIONS);
  780.     YY_BREAK
  781. case 17:
  782. YY_RULE_SETUP
  783. #line 43 "lexer"
  784. return (EXTRA);
  785.     YY_BREAK
  786. case 18:
  787. YY_RULE_SETUP
  788. #line 45 "lexer"
  789. return (DIRECT);
  790.     YY_BREAK
  791. case 19:
  792. YY_RULE_SETUP
  793. #line 47 "lexer"
  794. return (USING);
  795.     YY_BREAK
  796. case 20:
  797. YY_RULE_SETUP
  798. #line 49 "lexer"
  799. return (PATH);
  800.     YY_BREAK
  801. case 21:
  802. YY_RULE_SETUP
  803. #line 51 "lexer"
  804. return (PANICLOG);
  805.     YY_BREAK
  806. case 22:
  807. YY_RULE_SETUP
  808. #line 53 "lexer"
  809. return (LOGFILE);
  810.     YY_BREAK
  811. case 23:
  812. YY_RULE_SETUP
  813. #line 55 "lexer"
  814. return (EMAIL);
  815.     YY_BREAK
  816. case 24:
  817. YY_RULE_SETUP
  818. #line 57 "lexer"
  819. return (MGETTYCONFIG);
  820.     YY_BREAK
  821. case 25:
  822. YY_RULE_SETUP
  823. #line 59 "lexer"
  824. return (MODEMBASE);
  825.     YY_BREAK
  826. case 26:
  827. YY_RULE_SETUP
  828. #line 61 "lexer"
  829. return (RETRY);
  830.     YY_BREAK
  831. case 27:
  832. YY_RULE_SETUP
  833. #line 63 "lexer"
  834. return (MAXTIME);
  835.     YY_BREAK
  836. case 28:
  837. YY_RULE_SETUP
  838. #line 65 "lexer"
  839. return (NODESTINATIONS);
  840.     YY_BREAK
  841. case 29:
  842. YY_RULE_SETUP
  843. #line 67 "lexer"
  844. return (SHOWNUMS);
  845.     YY_BREAK
  846. case 30:
  847. YY_RULE_SETUP
  848. #line 69 "lexer"
  849. return (LOGIN);
  850.     YY_BREAK
  851. case 31:
  852. YY_RULE_SETUP
  853. #line 71 "lexer"
  854. return (TTYNR);
  855.     YY_BREAK
  856. case 32:
  857. YY_RULE_SETUP
  858. #line 73 "lexer"
  859. return (*yytext);
  860.     YY_BREAK
  861. case 33:
  862. YY_RULE_SETUP
  863. #line 75 "lexer"
  864. return (NUMBER);    
  865.     YY_BREAK
  866. case 34:
  867. YY_RULE_SETUP
  868. #line 77 "lexer"
  869. return (IDENTIFIER);
  870.     YY_BREAK
  871. case 35:
  872. YY_RULE_SETUP
  873. #line 78 "lexer"
  874. ECHO;
  875.     YY_BREAK
  876. #line 877 "lex.yy.c"
  877. case YY_STATE_EOF(INITIAL):
  878.     yyterminate();
  879.  
  880.     case YY_END_OF_BUFFER:
  881.         {
  882.         /* Amount of text matched not including the EOB char. */
  883.         int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
  884.  
  885.         /* Undo the effects of YY_DO_BEFORE_ACTION. */
  886.         *yy_cp = yy_hold_char;
  887.  
  888.         if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  889.             {
  890.             /* We're scanning a new file or input source.  It's
  891.              * possible that this happened because the user
  892.              * just pointed yyin at a new source and called
  893.              * yylex().  If so, then we have to assure
  894.              * consistency between yy_current_buffer and our
  895.              * globals.  Here is the right place to do so, because
  896.              * this is the first action (other than possibly a
  897.              * back-up) that will match for the new input source.
  898.              */
  899.             yy_n_chars = yy_current_buffer->yy_n_chars;
  900.             yy_current_buffer->yy_input_file = yyin;
  901.             yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
  902.             }
  903.  
  904.         /* Note that here we test for yy_c_buf_p "<=" to the position
  905.          * of the first EOB in the buffer, since yy_c_buf_p will
  906.          * already have been incremented past the NUL character
  907.          * (since all states make transitions on EOB to the
  908.          * end-of-buffer state).  Contrast this with the test
  909.          * in input().
  910.          */
  911.         if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  912.             { /* This was really a NUL. */
  913.             yy_state_type yy_next_state;
  914.  
  915.             yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
  916.  
  917.             yy_current_state = yy_get_previous_state();
  918.  
  919.             /* Okay, we're now positioned to make the NUL
  920.              * transition.  We couldn't have
  921.              * yy_get_previous_state() go ahead and do it
  922.              * for us because it doesn't know how to deal
  923.              * with the possibility of jamming (and we don't
  924.              * want to build jamming into it because then it
  925.              * will run more slowly).
  926.              */
  927.  
  928.             yy_next_state = yy_try_NUL_trans( yy_current_state );
  929.  
  930.             yy_bp = yytext_ptr + YY_MORE_ADJ;
  931.  
  932.             if ( yy_next_state )
  933.                 {
  934.                 /* Consume the NUL. */
  935.                 yy_cp = ++yy_c_buf_p;
  936.                 yy_current_state = yy_next_state;
  937.                 goto yy_match;
  938.                 }
  939.  
  940.             else
  941.                 {
  942.                 yy_cp = yy_c_buf_p;
  943.                 goto yy_find_action;
  944.                 }
  945.             }
  946.  
  947.         else switch ( yy_get_next_buffer() )
  948.             {
  949.             case EOB_ACT_END_OF_FILE:
  950.                 {
  951.                 yy_did_buffer_switch_on_eof = 0;
  952.  
  953.                 if ( yywrap() )
  954.                     {
  955.                     /* Note: because we've taken care in
  956.                      * yy_get_next_buffer() to have set up
  957.                      * yytext, we can now set up
  958.                      * yy_c_buf_p so that if some total
  959.                      * hoser (like flex itself) wants to
  960.                      * call the scanner after we return the
  961.                      * YY_NULL, it'll still work - another
  962.                      * YY_NULL will get returned.
  963.                      */
  964.                     yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  965.  
  966.                     yy_act = YY_STATE_EOF(YY_START);
  967.                     goto do_action;
  968.                     }
  969.  
  970.                 else
  971.                     {
  972.                     if ( ! yy_did_buffer_switch_on_eof )
  973.                         YY_NEW_FILE;
  974.                     }
  975.                 break;
  976.                 }
  977.  
  978.             case EOB_ACT_CONTINUE_SCAN:
  979.                 yy_c_buf_p =
  980.                     yytext_ptr + yy_amount_of_matched_text;
  981.  
  982.                 yy_current_state = yy_get_previous_state();
  983.  
  984.                 yy_cp = yy_c_buf_p;
  985.                 yy_bp = yytext_ptr + YY_MORE_ADJ;
  986.                 goto yy_match;
  987.  
  988.             case EOB_ACT_LAST_MATCH:
  989.                 yy_c_buf_p =
  990.                 &yy_current_buffer->yy_ch_buf[yy_n_chars];
  991.  
  992.                 yy_current_state = yy_get_previous_state();
  993.  
  994.                 yy_cp = yy_c_buf_p;
  995.                 yy_bp = yytext_ptr + YY_MORE_ADJ;
  996.                 goto yy_find_action;
  997.             }
  998.         break;
  999.         }
  1000.  
  1001.     default:
  1002.         YY_FATAL_ERROR(
  1003.             "fatal flex scanner internal error--no action found" );
  1004.     } /* end of action switch */
  1005.         } /* end of scanning one token */
  1006.     } /* end of yylex */
  1007.  
  1008.  
  1009. /* yy_get_next_buffer - try to read in a new buffer
  1010.  *
  1011.  * Returns a code representing an action:
  1012.  *    EOB_ACT_LAST_MATCH -
  1013.  *    EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1014.  *    EOB_ACT_END_OF_FILE - end of file
  1015.  */
  1016.  
  1017. static int yy_get_next_buffer()
  1018.     {
  1019.     register char *dest = yy_current_buffer->yy_ch_buf;
  1020.     register char *source = yytext_ptr;
  1021.     register int number_to_move, i;
  1022.     int ret_val;
  1023.  
  1024.     if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  1025.         YY_FATAL_ERROR(
  1026.         "fatal flex scanner internal error--end of buffer missed" );
  1027.  
  1028.     if ( yy_current_buffer->yy_fill_buffer == 0 )
  1029.         { /* Don't try to fill the buffer, so this is an EOF. */
  1030.         if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  1031.             {
  1032.             /* We matched a singled characater, the EOB, so
  1033.              * treat this as a final EOF.
  1034.              */
  1035.             return EOB_ACT_END_OF_FILE;
  1036.             }
  1037.  
  1038.         else
  1039.             {
  1040.             /* We matched some text prior to the EOB, first
  1041.              * process it.
  1042.              */
  1043.             return EOB_ACT_LAST_MATCH;
  1044.             }
  1045.         }
  1046.  
  1047.     /* Try to read more data. */
  1048.  
  1049.     /* First move last chars to start of buffer. */
  1050.     number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
  1051.  
  1052.     for ( i = 0; i < number_to_move; ++i )
  1053.         *(dest++) = *(source++);
  1054.  
  1055.     if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1056.         /* don't do the read, it's not guaranteed to return an EOF,
  1057.          * just force an EOF
  1058.          */
  1059.         yy_n_chars = 0;
  1060.  
  1061.     else
  1062.         {
  1063.         int num_to_read =
  1064.             yy_current_buffer->yy_buf_size - number_to_move - 1;
  1065.  
  1066.         while ( num_to_read <= 0 )
  1067.             { /* Not enough room in the buffer - grow it. */
  1068. #ifdef YY_USES_REJECT
  1069.             YY_FATAL_ERROR(
  1070. "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  1071. #else
  1072.  
  1073.             /* just a shorter name for the current buffer */
  1074.             YY_BUFFER_STATE b = yy_current_buffer;
  1075.  
  1076.             int yy_c_buf_p_offset =
  1077.                 (int) (yy_c_buf_p - b->yy_ch_buf);
  1078.  
  1079.             if ( b->yy_is_our_buffer )
  1080.                 {
  1081.                 int new_size = b->yy_buf_size * 2;
  1082.  
  1083.                 if ( new_size <= 0 )
  1084.                     b->yy_buf_size += b->yy_buf_size / 8;
  1085.                 else
  1086.                     b->yy_buf_size *= 2;
  1087.  
  1088.                 b->yy_ch_buf = (char *)
  1089.                     /* Include room in for 2 EOB chars. */
  1090.                     yy_flex_realloc( (void *) b->yy_ch_buf,
  1091.                              b->yy_buf_size + 2 );
  1092.                 }
  1093.             else
  1094.                 /* Can't grow it, we don't own it. */
  1095.                 b->yy_ch_buf = 0;
  1096.  
  1097.             if ( ! b->yy_ch_buf )
  1098.                 YY_FATAL_ERROR(
  1099.                 "fatal error - scanner input buffer overflow" );
  1100.  
  1101.             yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  1102.  
  1103.             num_to_read = yy_current_buffer->yy_buf_size -
  1104.                         number_to_move - 1;
  1105. #endif
  1106.             }
  1107.  
  1108.         if ( num_to_read > YY_READ_BUF_SIZE )
  1109.             num_to_read = YY_READ_BUF_SIZE;
  1110.  
  1111.         /* Read in more data. */
  1112.         YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  1113.             yy_n_chars, num_to_read );
  1114.         }
  1115.  
  1116.     if ( yy_n_chars == 0 )
  1117.         {
  1118.         if ( number_to_move == YY_MORE_ADJ )
  1119.             {
  1120.             ret_val = EOB_ACT_END_OF_FILE;
  1121.             yyrestart( yyin );
  1122.             }
  1123.  
  1124.         else
  1125.             {
  1126.             ret_val = EOB_ACT_LAST_MATCH;
  1127.             yy_current_buffer->yy_buffer_status =
  1128.                 YY_BUFFER_EOF_PENDING;
  1129.             }
  1130.         }
  1131.  
  1132.     else
  1133.         ret_val = EOB_ACT_CONTINUE_SCAN;
  1134.  
  1135.     yy_n_chars += number_to_move;
  1136.     yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1137.     yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1138.  
  1139.     yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
  1140.  
  1141.     return ret_val;
  1142.     }
  1143.  
  1144.  
  1145. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1146.  
  1147. static yy_state_type yy_get_previous_state()
  1148.     {
  1149.     register yy_state_type yy_current_state;
  1150.     register char *yy_cp;
  1151.  
  1152.     yy_current_state = yy_start;
  1153.  
  1154.     for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  1155.         {
  1156.         register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1157.         if ( yy_accept[yy_current_state] )
  1158.             {
  1159.             yy_last_accepting_state = yy_current_state;
  1160.             yy_last_accepting_cpos = yy_cp;
  1161.             }
  1162.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1163.             {
  1164.             yy_current_state = (int) yy_def[yy_current_state];
  1165.             if ( yy_current_state >= 163 )
  1166.                 yy_c = yy_meta[(unsigned int) yy_c];
  1167.             }
  1168.         yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1169.         }
  1170.  
  1171.     return yy_current_state;
  1172.     }
  1173.  
  1174.  
  1175. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1176.  *
  1177.  * synopsis
  1178.  *    next_state = yy_try_NUL_trans( current_state );
  1179.  */
  1180.  
  1181. #ifdef YY_USE_PROTOS
  1182. static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
  1183. #else
  1184. static yy_state_type yy_try_NUL_trans( yy_current_state )
  1185. yy_state_type yy_current_state;
  1186. #endif
  1187.     {
  1188.     register int yy_is_jam;
  1189.     register char *yy_cp = yy_c_buf_p;
  1190.  
  1191.     register YY_CHAR yy_c = 1;
  1192.     if ( yy_accept[yy_current_state] )
  1193.         {
  1194.         yy_last_accepting_state = yy_current_state;
  1195.         yy_last_accepting_cpos = yy_cp;
  1196.         }
  1197.     while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1198.         {
  1199.         yy_current_state = (int) yy_def[yy_current_state];
  1200.         if ( yy_current_state >= 163 )
  1201.             yy_c = yy_meta[(unsigned int) yy_c];
  1202.         }
  1203.     yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1204.     yy_is_jam = (yy_current_state == 162);
  1205.  
  1206.     return yy_is_jam ? 0 : yy_current_state;
  1207.     }
  1208.  
  1209.  
  1210. #ifndef YY_NO_UNPUT
  1211. #ifdef YY_USE_PROTOS
  1212. static void yyunput( int c, register char *yy_bp )
  1213. #else
  1214. static void yyunput( c, yy_bp )
  1215. int c;
  1216. register char *yy_bp;
  1217. #endif
  1218.     {
  1219.     register char *yy_cp = yy_c_buf_p;
  1220.  
  1221.     /* undo effects of setting up yytext */
  1222.     *yy_cp = yy_hold_char;
  1223.  
  1224.     if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1225.         { /* need to shift things up to make room */
  1226.         /* +2 for EOB chars. */
  1227.         register int number_to_move = yy_n_chars + 2;
  1228.         register char *dest = &yy_current_buffer->yy_ch_buf[
  1229.                     yy_current_buffer->yy_buf_size + 2];
  1230.         register char *source =
  1231.                 &yy_current_buffer->yy_ch_buf[number_to_move];
  1232.  
  1233.         while ( source > yy_current_buffer->yy_ch_buf )
  1234.             *--dest = *--source;
  1235.  
  1236.         yy_cp += (int) (dest - source);
  1237.         yy_bp += (int) (dest - source);
  1238.         yy_n_chars = yy_current_buffer->yy_buf_size;
  1239.  
  1240.         if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  1241.             YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1242.         }
  1243.  
  1244.     *--yy_cp = (char) c;
  1245.  
  1246.  
  1247.     yytext_ptr = yy_bp;
  1248.     yy_hold_char = *yy_cp;
  1249.     yy_c_buf_p = yy_cp;
  1250.     }
  1251. #endif    /* ifndef YY_NO_UNPUT */
  1252.  
  1253.  
  1254. #ifdef __cplusplus
  1255. static int yyinput()
  1256. #else
  1257. static int input()
  1258. #endif
  1259.     {
  1260.     int c;
  1261.  
  1262.     *yy_c_buf_p = yy_hold_char;
  1263.  
  1264.     if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1265.         {
  1266.         /* yy_c_buf_p now points to the character we want to return.
  1267.          * If this occurs *before* the EOB characters, then it's a
  1268.          * valid NUL; if not, then we've hit the end of the buffer.
  1269.          */
  1270.         if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  1271.             /* This was really a NUL. */
  1272.             *yy_c_buf_p = '\0';
  1273.  
  1274.         else
  1275.             { /* need more input */
  1276.             yytext_ptr = yy_c_buf_p;
  1277.             ++yy_c_buf_p;
  1278.  
  1279.             switch ( yy_get_next_buffer() )
  1280.                 {
  1281.                 case EOB_ACT_END_OF_FILE:
  1282.                     {
  1283.                     if ( yywrap() )
  1284.                         {
  1285.                         yy_c_buf_p =
  1286.                         yytext_ptr + YY_MORE_ADJ;
  1287.                         return EOF;
  1288.                         }
  1289.  
  1290.                     if ( ! yy_did_buffer_switch_on_eof )
  1291.                         YY_NEW_FILE;
  1292. #ifdef __cplusplus
  1293.                     return yyinput();
  1294. #else
  1295.                     return input();
  1296. #endif
  1297.                     }
  1298.  
  1299.                 case EOB_ACT_CONTINUE_SCAN:
  1300.                     yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  1301.                     break;
  1302.  
  1303.                 case EOB_ACT_LAST_MATCH:
  1304. #ifdef __cplusplus
  1305.                     YY_FATAL_ERROR(
  1306.                     "unexpected last match in yyinput()" );
  1307. #else
  1308.                     YY_FATAL_ERROR(
  1309.                     "unexpected last match in input()" );
  1310. #endif
  1311.                 }
  1312.             }
  1313.         }
  1314.  
  1315.     c = *(unsigned char *) yy_c_buf_p;    /* cast for 8-bit char's */
  1316.     *yy_c_buf_p = '\0';    /* preserve yytext */
  1317.     yy_hold_char = *++yy_c_buf_p;
  1318.  
  1319.  
  1320.     return c;
  1321.     }
  1322.  
  1323.  
  1324. #ifdef YY_USE_PROTOS
  1325. void yyrestart( FILE *input_file )
  1326. #else
  1327. void yyrestart( input_file )
  1328. FILE *input_file;
  1329. #endif
  1330.     {
  1331.     if ( ! yy_current_buffer )
  1332.         yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  1333.  
  1334.     yy_init_buffer( yy_current_buffer, input_file );
  1335.     yy_load_buffer_state();
  1336.     }
  1337.  
  1338.  
  1339. #ifdef YY_USE_PROTOS
  1340. void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  1341. #else
  1342. void yy_switch_to_buffer( new_buffer )
  1343. YY_BUFFER_STATE new_buffer;
  1344. #endif
  1345.     {
  1346.     if ( yy_current_buffer == new_buffer )
  1347.         return;
  1348.  
  1349.     if ( yy_current_buffer )
  1350.         {
  1351.         /* Flush out information for old buffer. */
  1352.         *yy_c_buf_p = yy_hold_char;
  1353.         yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  1354.         yy_current_buffer->yy_n_chars = yy_n_chars;
  1355.         }
  1356.  
  1357.     yy_current_buffer = new_buffer;
  1358.     yy_load_buffer_state();
  1359.  
  1360.     /* We don't actually know whether we did this switch during
  1361.      * EOF (yywrap()) processing, but the only time this flag
  1362.      * is looked at is after yywrap() is called, so it's safe
  1363.      * to go ahead and always set it.
  1364.      */
  1365.     yy_did_buffer_switch_on_eof = 1;
  1366.     }
  1367.  
  1368.  
  1369. #ifdef YY_USE_PROTOS
  1370. void yy_load_buffer_state( void )
  1371. #else
  1372. void yy_load_buffer_state()
  1373. #endif
  1374.     {
  1375.     yy_n_chars = yy_current_buffer->yy_n_chars;
  1376.     yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  1377.     yyin = yy_current_buffer->yy_input_file;
  1378.     yy_hold_char = *yy_c_buf_p;
  1379.     }
  1380.  
  1381.  
  1382. #ifdef YY_USE_PROTOS
  1383. YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  1384. #else
  1385. YY_BUFFER_STATE yy_create_buffer( file, size )
  1386. FILE *file;
  1387. int size;
  1388. #endif
  1389.     {
  1390.     YY_BUFFER_STATE b;
  1391.  
  1392.     b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  1393.     if ( ! b )
  1394.         YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1395.  
  1396.     b->yy_buf_size = size;
  1397.  
  1398.     /* yy_ch_buf has to be 2 characters longer than the size given because
  1399.      * we need to put in 2 end-of-buffer characters.
  1400.      */
  1401.     b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
  1402.     if ( ! b->yy_ch_buf )
  1403.         YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1404.  
  1405.     b->yy_is_our_buffer = 1;
  1406.  
  1407.     yy_init_buffer( b, file );
  1408.  
  1409.     return b;
  1410.     }
  1411.  
  1412.  
  1413. #ifdef YY_USE_PROTOS
  1414. void yy_delete_buffer( YY_BUFFER_STATE b )
  1415. #else
  1416. void yy_delete_buffer( b )
  1417. YY_BUFFER_STATE b;
  1418. #endif
  1419.     {
  1420.     if ( ! b )
  1421.         return;
  1422.  
  1423.     if ( b == yy_current_buffer )
  1424.         yy_current_buffer = (YY_BUFFER_STATE) 0;
  1425.  
  1426.     if ( b->yy_is_our_buffer )
  1427.         yy_flex_free( (void *) b->yy_ch_buf );
  1428.  
  1429.     yy_flex_free( (void *) b );
  1430.     }
  1431.  
  1432.  
  1433. #ifndef YY_ALWAYS_INTERACTIVE
  1434. #ifndef YY_NEVER_INTERACTIVE
  1435. extern int isatty YY_PROTO(( int ));
  1436. #endif
  1437. #endif
  1438.  
  1439. #ifdef YY_USE_PROTOS
  1440. void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  1441. #else
  1442. void yy_init_buffer( b, file )
  1443. YY_BUFFER_STATE b;
  1444. FILE *file;
  1445. #endif
  1446.  
  1447.  
  1448.     {
  1449.     yy_flush_buffer( b );
  1450.  
  1451.     b->yy_input_file = file;
  1452.     b->yy_fill_buffer = 1;
  1453.  
  1454. #if YY_ALWAYS_INTERACTIVE
  1455.     b->yy_is_interactive = 1;
  1456. #else
  1457. #if YY_NEVER_INTERACTIVE
  1458.     b->yy_is_interactive = 0;
  1459. #else
  1460.     b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1461. #endif
  1462. #endif
  1463.     }
  1464.  
  1465.  
  1466. #ifdef YY_USE_PROTOS
  1467. void yy_flush_buffer( YY_BUFFER_STATE b )
  1468. #else
  1469. void yy_flush_buffer( b )
  1470. YY_BUFFER_STATE b;
  1471. #endif
  1472.  
  1473.     {
  1474.     b->yy_n_chars = 0;
  1475.  
  1476.     /* We always need two end-of-buffer characters.  The first causes
  1477.      * a transition to the end-of-buffer state.  The second causes
  1478.      * a jam in that state.
  1479.      */
  1480.     b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1481.     b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1482.  
  1483.     b->yy_buf_pos = &b->yy_ch_buf[0];
  1484.  
  1485.     b->yy_at_bol = 1;
  1486.     b->yy_buffer_status = YY_BUFFER_NEW;
  1487.  
  1488.     if ( b == yy_current_buffer )
  1489.         yy_load_buffer_state();
  1490.     }
  1491.  
  1492.  
  1493. #ifndef YY_NO_SCAN_BUFFER
  1494. #ifdef YY_USE_PROTOS
  1495. YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
  1496. #else
  1497. YY_BUFFER_STATE yy_scan_buffer( base, size )
  1498. char *base;
  1499. yy_size_t size;
  1500. #endif
  1501.     {
  1502.     YY_BUFFER_STATE b;
  1503.  
  1504.     if ( size < 2 ||
  1505.          base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1506.          base[size-1] != YY_END_OF_BUFFER_CHAR )
  1507.         /* They forgot to leave room for the EOB's. */
  1508.         return 0;
  1509.  
  1510.     b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  1511.     if ( ! b )
  1512.         YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1513.  
  1514.     b->yy_buf_size = size - 2;    /* "- 2" to take care of EOB's */
  1515.     b->yy_buf_pos = b->yy_ch_buf = base;
  1516.     b->yy_is_our_buffer = 0;
  1517.     b->yy_input_file = 0;
  1518.     b->yy_n_chars = b->yy_buf_size;
  1519.     b->yy_is_interactive = 0;
  1520.     b->yy_at_bol = 1;
  1521.     b->yy_fill_buffer = 0;
  1522.     b->yy_buffer_status = YY_BUFFER_NEW;
  1523.  
  1524.     yy_switch_to_buffer( b );
  1525.  
  1526.     return b;
  1527.     }
  1528. #endif
  1529.  
  1530.  
  1531. #ifndef YY_NO_SCAN_STRING
  1532. #ifdef YY_USE_PROTOS
  1533. YY_BUFFER_STATE yy_scan_string( yyconst char *str )
  1534. #else
  1535. YY_BUFFER_STATE yy_scan_string( str )
  1536. yyconst char *str;
  1537. #endif
  1538.     {
  1539.     int len;
  1540.     for ( len = 0; str[len]; ++len )
  1541.         ;
  1542.  
  1543.     return yy_scan_bytes( str, len );
  1544.     }
  1545. #endif
  1546.  
  1547.  
  1548. #ifndef YY_NO_SCAN_BYTES
  1549. #ifdef YY_USE_PROTOS
  1550. YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
  1551. #else
  1552. YY_BUFFER_STATE yy_scan_bytes( bytes, len )
  1553. yyconst char *bytes;
  1554. int len;
  1555. #endif
  1556.     {
  1557.     YY_BUFFER_STATE b;
  1558.     char *buf;
  1559.     yy_size_t n;
  1560.     int i;
  1561.  
  1562.     /* Get memory for full buffer, including space for trailing EOB's. */
  1563.     n = len + 2;
  1564.     buf = (char *) yy_flex_alloc( n );
  1565.     if ( ! buf )
  1566.         YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1567.  
  1568.     for ( i = 0; i < len; ++i )
  1569.         buf[i] = bytes[i];
  1570.  
  1571.     buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  1572.  
  1573.     b = yy_scan_buffer( buf, n );
  1574.     if ( ! b )
  1575.         YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1576.  
  1577.     /* It's okay to grow etc. this buffer, and we should throw it
  1578.      * away when we're done.
  1579.      */
  1580.     b->yy_is_our_buffer = 1;
  1581.  
  1582.     return b;
  1583.     }
  1584. #endif
  1585.  
  1586.  
  1587. #ifndef YY_NO_PUSH_STATE
  1588. #ifdef YY_USE_PROTOS
  1589. static void yy_push_state( int new_state )
  1590. #else
  1591. static void yy_push_state( new_state )
  1592. int new_state;
  1593. #endif
  1594.     {
  1595.     if ( yy_start_stack_ptr >= yy_start_stack_depth )
  1596.         {
  1597.         yy_size_t new_size;
  1598.  
  1599.         yy_start_stack_depth += YY_START_STACK_INCR;
  1600.         new_size = yy_start_stack_depth * sizeof( int );
  1601.  
  1602.         if ( ! yy_start_stack )
  1603.             yy_start_stack = (int *) yy_flex_alloc( new_size );
  1604.  
  1605.         else
  1606.             yy_start_stack = (int *) yy_flex_realloc(
  1607.                     (void *) yy_start_stack, new_size );
  1608.  
  1609.         if ( ! yy_start_stack )
  1610.             YY_FATAL_ERROR(
  1611.             "out of memory expanding start-condition stack" );
  1612.         }
  1613.  
  1614.     yy_start_stack[yy_start_stack_ptr++] = YY_START;
  1615.  
  1616.     BEGIN(new_state);
  1617.     }
  1618. #endif
  1619.  
  1620.  
  1621. #ifndef YY_NO_POP_STATE
  1622. static void yy_pop_state()
  1623.     {
  1624.     if ( --yy_start_stack_ptr < 0 )
  1625.         YY_FATAL_ERROR( "start-condition stack underflow" );
  1626.  
  1627.     BEGIN(yy_start_stack[yy_start_stack_ptr]);
  1628.     }
  1629. #endif
  1630.  
  1631.  
  1632. #ifndef YY_NO_TOP_STATE
  1633. static int yy_top_state()
  1634.     {
  1635.     return yy_start_stack[yy_start_stack_ptr - 1];
  1636.     }
  1637. #endif
  1638.  
  1639. #ifndef YY_EXIT_FAILURE
  1640. #define YY_EXIT_FAILURE 2
  1641. #endif
  1642.  
  1643. #ifdef YY_USE_PROTOS
  1644. static void yy_fatal_error( yyconst char msg[] )
  1645. #else
  1646. static void yy_fatal_error( msg )
  1647. char msg[];
  1648. #endif
  1649.     {
  1650.     (void) fprintf( stderr, "%s\n", msg );
  1651.     exit( YY_EXIT_FAILURE );
  1652.     }
  1653.  
  1654.  
  1655.  
  1656. /* Redefine yyless() so it works in section 3 code. */
  1657.  
  1658. #undef yyless
  1659. #define yyless(n) \
  1660.     do \
  1661.         { \
  1662.         /* Undo effects of setting up yytext. */ \
  1663.         yytext[yyleng] = yy_hold_char; \
  1664.         yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
  1665.         yy_hold_char = *yy_c_buf_p; \
  1666.         *yy_c_buf_p = '\0'; \
  1667.         yyleng = n; \
  1668.         } \
  1669.     while ( 0 )
  1670.  
  1671.  
  1672. /* Internal utility routines. */
  1673.  
  1674. #ifndef yytext_ptr
  1675. #ifdef YY_USE_PROTOS
  1676. static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
  1677. #else
  1678. static void yy_flex_strncpy( s1, s2, n )
  1679. char *s1;
  1680. yyconst char *s2;
  1681. int n;
  1682. #endif
  1683.     {
  1684.     register int i;
  1685.     for ( i = 0; i < n; ++i )
  1686.         s1[i] = s2[i];
  1687.     }
  1688. #endif
  1689.  
  1690.  
  1691. #ifdef YY_USE_PROTOS
  1692. static void *yy_flex_alloc( yy_size_t size )
  1693. #else
  1694. static void *yy_flex_alloc( size )
  1695. yy_size_t size;
  1696. #endif
  1697.     {
  1698.     return (void *) malloc( size );
  1699.     }
  1700.  
  1701. #ifdef YY_USE_PROTOS
  1702. static void *yy_flex_realloc( void *ptr, yy_size_t size )
  1703. #else
  1704. static void *yy_flex_realloc( ptr, size )
  1705. void *ptr;
  1706. yy_size_t size;
  1707. #endif
  1708.     {
  1709.     /* The cast to (char *) in the following accommodates both
  1710.      * implementations that use char* generic pointers, and those
  1711.      * that use void* generic pointers.  It works with the latter
  1712.      * because both ANSI C and C++ allow castless assignment from
  1713.      * any pointer type to void*, and deal with argument conversions
  1714.      * as though doing an assignment.
  1715.      */
  1716.     return (void *) realloc( (char *) ptr, size );
  1717.     }
  1718.  
  1719. #ifdef YY_USE_PROTOS
  1720. static void yy_flex_free( void *ptr )
  1721. #else
  1722. static void yy_flex_free( ptr )
  1723. void *ptr;
  1724. #endif
  1725.     {
  1726.     free( ptr );
  1727.     }
  1728.  
  1729. #if YY_MAIN
  1730. int main()
  1731.     {
  1732.     yylex();
  1733.     return 0;
  1734.     }
  1735. #endif
  1736. #line 78 "lexer"
  1737.